import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route ,hashHistory } from 'react-router'
import {Menu} from 'antd';
import App from './App';
import './index.css';
ReactDOM.render(
   <div >
       <Menu  mode="horizontal" onClick={(item,key,keyPath)=>{
           console.log(item)
           if(item.key==0)key="/";
           location.hash=key}}>
           <Menu.Item key={0}>跨境项目mini发布系统</Menu.Item>
       </Menu>
      <Router history={hashHistory} >
           <Route path="/" component={App}/>
      </Router>
   </div>
  ,
  document.getElementById('root')
);
